<?php

namespace app\api\controller;

use app\api\controller\bonus\Datas;
use app\common\controller\Api;

/**
 * 分红
 * Class Bonus
 * @package 
 */
class Bonus extends Api
{
	protected $noNeedLogin = "*";
	protected $noNeedRight = '*';

	/**
	 * 达标信息
	 * @return \think\response\Json
	 */
	public function stands_list()
	{
		$data = Datas::instance()->stands_lev_list();
		$this->success("接口正常", $data);
	}

	/**
	 * 达标信息 - 详情
	 * @return \think\response\Json
	 */
	public function stands_details()
	{
		$levs = $this->request->post("levs");
		$months = $this->request->post("times");
		$data = Datas::instance()->stands_details($levs, $months);
		$this->success("接口正常", $data);
	}

	/**
	 * 个人年显示-分红达标收益列表
	 * @return \think\response\Json
	 */
	public function person_years_stands_list()
	{
		$data = Datas::instance()->person_years_stands_list($this->auth->id);
		$this->success("接口正常", $data);
	}
}
